// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import FastClick from 'fastclick'
import {
  Tabbar,
  TabbarItem,
  Icon,
  Popup,
  Search,
  NavBar,
  Grid,
  GridItem,
  Col,
  Row,
  Button,
  List,
  Cell,
  CellGroup,
  Form,
  Field,
  Image
} from 'vant'

Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Popup)
Vue.use(Search)
Vue.use(NavBar)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Col)
Vue.use(Row)
Vue.use(Button)
Vue.use(List)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Form)
Vue.use(Field)
Vue.use(Image)

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
